<?php

/*
List Authority (admin_list_authority.php)
*/

$page_title = "List Authority";
$rank_check = 7;
include "../header.inc.php";


print "$openHTML<br><center><table cellspacing=1 cellborder=0 bgcolor=black><tr bgcolor=white><td valign=top>";

$find_police = mysql_query("SELECT username,display_name FROM members2 WHERE rank = '4' AND game = '$game'");
print "<p><b>Police Force:<br><br></b>";
while ($list_police = mysql_fetch_array($find_police)) {
print "<a href=user_profile.php?game=$game&user=$list_police[username]>$list_police[display_name]</a><br>";
}
print "</p></td>";

$find_mods = mysql_query("SELECT * FROM members2 WHERE rank = '5' AND game = '$game'");
print "<td valign=top><p><b>Mod Squad:<br><br></b>";
while ($list_mods = mysql_fetch_array($find_mods)) {
print "<a href=user_profile.php?game=$game&user=$list_mods[username]>$list_mods[display_name]</a><br>";
}
print "</p></td>";

$find_admins = mysql_query("SELECT * FROM members2 WHERE rank >= '7' AND game = '$game'");
print "<td valign=top><p><b>Admins Plus:<br><br></b>";
while ($list_admins = mysql_fetch_array($find_admins)) {
print "<a href=user_profile.php?game=$game&user=$list_admins[username]>$list_admins[display_name]</a><br>";
}
print "</p></td></tr></table></center>";
print "$closeHTML";
?>
